/* ---------------------------------------------------------------------------
 * This software is in the public domain, furnished "as is", without technical
 * support, and with no warranty, express or implied, as to its usefulness for
 * any purpose.
 *
 * main.cpp
 *
 * Author: Guillaume Boissé
 * -------------------------------------------------------------------------*/

#include "Debug.h"
#include "Injector.h"

#include <cstdlib>

using namespace jsp;

int main(int argc, const char * argv[])
{
    Injector injector("index.js");

    error_t err;

    err = injector.inject();
    ASSERT(err == eError_Ok);

    err = injector.evaluate();
    ASSERT(err == eError_Ok);

    return err == eError_Ok ? EXIT_SUCCESS : EXIT_FAILURE;
}
